/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package db.factories;


import db.JDBC.JdbcDaoFactory;
import db.JDBC.UserJdbcDAO;
import db.interfaces.UserDAO;
import java.sql.Connection;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.sql.DataSource;


/**
 *
 * @author Peter
 */
public class UserDAOFactory {

    public static enum DAOTYPE{JDBC };

    public static UserDAO getDAO(DAOTYPE type)
    {

        switch(type)
        {
            case JDBC:
                return JdbcDaoFactory.getInstance().getUserJdbcDAO();
            default:
            return null;
        }
    }
}
